package com.china.lottery.listener.dao;

import java.util.List;

import javax.persistence.Query;

import org.springframework.stereotype.Repository;

import com.china.lottery.listener.dao.base.CommonDao;
import com.china.lottery.listener.dao.entity.SysLottery;



@Repository
public class SysDao extends CommonDao {

	@SuppressWarnings("unchecked")
	public SysLottery querySysLottery() {
		String jpql = "SELECT  t FROM SysLottery t";
		Query q = em.createQuery(jpql);
		List<SysLottery> list = q.getResultList();
		return list.get(0);
	}
	
	

}